package com.hhsjdesign.dynamicui.core.property.widget

import com.hhsjdesign.dynamicui.annoprocess.ADynamicUI
import com.hhsjdesign.dynamicui.annoprocess.AWidgetProperty
import com.hhsjdesign.dynamicui.core.property.WidgetSpecProperty
import com.hhsjdesign.dynamicui.core.widgetdata.WidgetTypeConst
import org.json.JSONObject

//头条
@ADynamicUI
@AWidgetProperty(WidgetTypeConst.FLIP)
class FlipWidgetProperty : WidgetSpecProperty {

    //轮播事件间隔
    var duration: Int = 3000

    constructor(jo: JSONObject) : super(jo) {
        duration = jo.optInt("duration")
    }

}